﻿using QMERP.Domain.Dtos;

namespace QMERP.Application.Services
{
    public interface ISupplierService
    {
        /// <summary>
        /// 获取供应商列表基础数据
        /// </summary>
        /// <returns></returns>
        Task<List<SupplierResponse>> GetBasicSuppliers();
        /// <summary>
        /// 供应商窗体
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<SupplierResponse>> Query(PageRequest<SupplierRequest> request);
        /// <summary>
        /// 获取id的供应商详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SupplierResponse> Detail(long id);
        /// <summary>
        /// 供应商保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(SupplierSaveRequest request);
    }
}
